<%@ Control Language="VB" AutoEventWireup="false" CodeFile="SearchPolicy.ascx.vb" Inherits="WebForms_WebUserControl" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>

<div>
    <table border="0" cellpadding="0" cellspacing="0" width="800">
        <tr>
        <td align="right" style="font-weight: bold; font-size: 10pt; font-family: Arial">
            <asp:LinkButton ID="Search_Policies" runat="server" Font-Underline="False"
                ForeColor="Black">Search Policies</asp:LinkButton>                        
        </td>
        <td style="font-size: 11pt; font-family: Arial; font-weight: bold;" align="center">
            &nbsp;<asp:Label ID="Label4" runat="server" ForeColor="DimGray"
                Text="|" Width="20px"></asp:Label></td>
        <td align="left" style="font-weight: bold; font-size: 10pt; font-family: Arial">
            <asp:LinkButton ID="Search_ClientIssues" runat="server" Font-Underline="False" 
                ForeColor="#0C58A2">Search Client Issues</asp:LinkButton>            
        </td>
        <td style="font-size: 11pt; font-family: Arial; font-weight: bold;" align="center">
                &nbsp;<asp:Label ID="Refferal_lbl" runat="server" ForeColor="DimGray"
                    Text="|" Width="20px"></asp:Label></td>
            <td align="right" style="font-weight: bold; font-size: 10pt; font-family: Arial; width: 88px;">
                <asp:LinkButton ID="Search_Referrals" runat="server" Font-Underline="False"
                    ForeColor="#0C58A2" Width="111px">Search Referrals</asp:LinkButton></td>
            <td align="left" style="font-weight: bold; font-size: 10pt; font-family: Arial; width: 393px;"></td>
        </tr>
    </table>

    <table border="0" cellpadding="0" cellspacing="0" width="800">
        <tr><td style="font-size: 3px; background-color: #105BA4; height: 3px;"></td></tr>
    </table>

    <table border="0" cellpadding="0" cellspacing="0" width="800">
    
    <tr><td style="width: 800px">

        <table border="0" cellpadding="0" cellspacing="0" width="800" style="height: 35px">
            <tr>
                <td style="font-size: 10pt; font-family: Verdana; width: 84px; height: 32px;" align="left">
                    &nbsp;Last Name:
                </td>
                <td align="left" style="width: 135px; height: 32px;">
                    &nbsp;<asp:TextBox ID="Lastname_txt" runat="server" Width="120px" Font-Names="Verdana"></asp:TextBox></td>
                <td style="font-size: 10pt; font-family: Verdana; width: 78px; height: 32px;" align="right">
                    First Name:
                </td>
                <td align="left" style="width: 150px; height: 32px;">
                    &nbsp;<asp:TextBox ID="Firstname_txt" runat="server" Width="136px"></asp:TextBox>
                </td>
                <td style="font-size: 10pt; font-family: Verdana; width: 90px; height: 32px;" align="right">
                    Middle Name:
                </td>
                <td align="left" style="width: 95px; height: 32px;">
                    &nbsp;<asp:TextBox ID="Middlename_txt" runat="server" Width="80px"></asp:TextBox>
                </td>
                <td style="font-size: 10pt; font-family: Verdana; width: 40px; height: 32px;" align="right">
                    Alias:
                </td>
                <td align="left" style="width: 93px; height: 32px;">
                    &nbsp;<asp:TextBox ID="Alias_txt" runat="server" Width="80px"></asp:TextBox>
                </td>
            </tr>
        </table>
            
    </td></tr>
    
    <tr><td style="width: 800px">

        <table border="0" cellpadding="0" cellspacing="0" width="800" style="height: 35px">
            <tr>
                <td style="font-size: 10pt; font-family: Verdana; width: 105px;" align="left">
                    &nbsp;Policy Number:
                </td>
                <td style="width: 125px" align="left">
                    &nbsp;<asp:TextBox ID="Policynumber_txt" runat="server" Width="104px"></asp:TextBox>
                </td>
                <td style="font-size: 10pt; font-family: Verdana; width: 58px;" align="right">
                    Provider:
                </td>
                <td align="left">
                    &nbsp;<asp:TextBox ID="Provider_txt" runat="server" Width="208px"></asp:TextBox>
                </td>
                <td style="font-size: 10pt; font-family: Verdana" align="right">
                    Product:
                </td>
                <td align="left">
                    &nbsp;<asp:TextBox ID="Product_txt" runat="server" Width="208px"></asp:TextBox>
                </td>
            </tr>
        </table>
            
    </td></tr>

    <tr><td style="width: 800px">

        <table border="0" cellpadding="0" cellspacing="0" width="800" style="height: 35px">
            <tr>
                <td style="width: 400px; height: 24px;"></td>
                <td style="height: 24px">
                    <asp:Button ID="Search_btn" runat="server" Text="Search" BackColor="Gainsboro" Font-Names="Verdana" CausesValidation="False" />
                </td>
                <td style="width: 59px; height: 24px;"></td>
                <td style="height: 24px">
                    <asp:Button ID="Print_btn" runat="server" Text="Print Results" BackColor="Gainsboro" Font-Names="Verdana" Width="104px" Visible="False" />
                </td>
                <td style="height: 24px">
                    <asp:Button ID="Save_btn" runat="server" Text="Save as Excel" BackColor="Gainsboro" Font-Names="Verdana" Width="112px" />
                </td>
            </tr>
        </table>
            
    </td></tr>

    </table>

    <table border="0" cellpadding="0" cellspacing="0" width="800">
        <tr><td style="font-size: 3px; background-color: #c0c0c0; height: 3px;"></td></tr>
    </table>

    <table border="0" cellpadding="0" cellspacing="0" width="800">
        <tr><td style="font-size: 3px; height: 20px;"></td></tr>
    </table>

    <table cellpadding="0" cellspacing="0" width="800px" style="font-family:Verdana; font-size:10pt">
        <tr>
        <td align="left" style="height: 16px"> Search Results: <asp:Label ID="results_label" runat="server" Text="0"></asp:Label></td>
        <td align="right" style="height: 16px;"> 
            <asp:LinkButton ID="AddNewBusiness" runat="server" ForeColor="Black" PostBackUrl="~/New_Business/ClientInfo.aspx"
                TabIndex="11" Font-Underline="True">Add New Business</asp:LinkButton></td>
        </tr>
    </table>
    
    <table cellpadding="0" cellspacing="0" width="800px" style="font-family:Verdana; font-size:3pt; height:3px">
        <tr><td>&nbsp;</td></tr>
    </table>        
    
    <table cellpadding="0" cellspacing="0">
        <tr><td style="width: 800px;">
            <asp:DataGrid ID="DataGrid" runat="server" AutoGenerateColumns="False" BackColor="White"
                BorderColor="White" BorderStyle="Solid" BorderWidth="1px" CellPadding="1" Font-Names="Verdana" Width="800px" Font-Size="10pt" TabIndex="12" AllowSorting="True" AllowPaging="True">
                <FooterStyle BackColor="#FFFFCC" ForeColor="#330099" />
                <SelectedItemStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="#663399" />
                <PagerStyle BackColor="White" ForeColor="#330099" HorizontalAlign="Left" Mode="NumericPages" PageButtonCount="9" Position="Top" />
                <AlternatingItemStyle BackColor="#D7DADF" />
                <ItemStyle BackColor="#F2F3F5" ForeColor="Black" />
                <HeaderStyle BackColor="#105BA4" Font-Bold="True" ForeColor="White" />
                <Columns>
                    <asp:BoundColumn DataField="policy_seq_cd" Visible="False"></asp:BoundColumn>
                    <asp:BoundColumn HeaderText="Name" DataField="broker_desc">
                        <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                            Font-Underline="False" HorizontalAlign="Left" />
                        <HeaderStyle Font-Bold="True" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                            Font-Underline="False" HorizontalAlign="Center" />
                    </asp:BoundColumn>
                    <asp:BoundColumn HeaderText="Policy #" DataField="policy_no">
                        <HeaderStyle Font-Bold="True" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center" />
                        <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                            Font-Underline="False" HorizontalAlign="Left" />
                    </asp:BoundColumn>
                    <asp:BoundColumn HeaderText="Provider" DataField="provider_desc">
                        <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                            Font-Underline="False" HorizontalAlign="Left" />
                        <HeaderStyle Font-Bold="True" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                            Font-Underline="False" HorizontalAlign="Center" />
                    </asp:BoundColumn>
                    <asp:BoundColumn DataField="prdt_desc" HeaderText="Product">
                        <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                            Font-Underline="False" HorizontalAlign="Left" />
                        <HeaderStyle Font-Bold="True" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                            Font-Underline="False" HorizontalAlign="Center" />
                    </asp:BoundColumn>
                    <asp:ButtonColumn CommandName="View" Text="View">
                        <HeaderStyle Width="15px" />
                        <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                            Font-Underline="False" HorizontalAlign="Center" />
                    </asp:ButtonColumn>
                    <asp:ButtonColumn CommandName="Edit" Text="Edit">
                        <HeaderStyle Width="10px" Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" />
                        <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                            Font-Underline="False" HorizontalAlign="Center" />
                    </asp:ButtonColumn>
                    <asp:TemplateColumn>
                        <HeaderStyle Width="15px" />
                        <ItemTemplate>
                            <asp:LinkButton ID="Delete_btn" runat="server" CommandName="Delete" ForeColor="Black">Delete</asp:LinkButton>
                            <ajaxToolkit:ConfirmButtonExtender
                                ID="ConfirmButtonExtender1" runat="server" ConfirmText="Continue delete?" TargetControlID="Delete_btn">
                            </ajaxToolkit:ConfirmButtonExtender>
                        </ItemTemplate>
                        <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                            Font-Underline="False" HorizontalAlign="Center" />
                    </asp:TemplateColumn>
                </Columns>
            </asp:DataGrid></td></tr>
    </table>
</div>  
